#include <iostream>  
#include <string.h>  
#include <stdio.h>  
#include <time.h>  
#include <algorithm>  
#include <math.h>
#include <set>
using namespace std;  
#define X first
#define Y second
#define mp make_pair
#define pii pair<int,int>
const int N = 1187;  
const int M = 200000;
int days[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
int main()  
{  
	freopen("friendship.txt" , "w" , stdout);
	srand(time(0));
	set<pii> st;
    for(int i=0 ; i<M ; ){
		int a = rand()%N+1 , b=rand()%N+1;
		if(a==b) continue;
		if(a>b) swap(a,b);
		if(st.find(make_pair(a,b)) == st.end()){
			st.insert(make_pair(a,b));
			i++;
			//printf("%d %d %d\n" , i,a,b);
		}
	}
	set<pii>::iterator it = st.begin();
	for(; it!=st.end() ; it++){
		pii u = *it;
		int year = 2017-rand()%10-1;
		int month = rand()%12+1;
		int day = rand()%days[month]+1;
		printf("%d\t%d\t" , u.X,u.Y);
		cout<<year<<"."<<month<<"."<<day<<endl;
	}
    return 0;  
} 
